package cn.bluethink.eguan.core.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.bluethink.eguan.core.entity.EgTaskEntity;
import tk.mybatis.mapper.common.Mapper;

public interface EgTaskMapper extends Mapper<EgTaskEntity> {

	public int updateTask(EgTaskEntity entity) throws Exception;
	
	/**
	 * 更新当前任务状态为已延误/延误进行/延误完成/
	 * @return
	 * @throws Exception
	 */
	public int updateStatusToDelay() throws Exception;
	
	/**
     * 批量逻辑删除通用任务
     * 
     * @param taskList
     * @return
     * @throws Exception
     */
    Integer updateTaskList(@Param("taskList") List<EgTaskEntity> taskList) throws Exception;
	
}
